<script>
import {carousel} from "@/api/http";

export default {
  name: "carouselCom",
  data() {
    return {
      list: [],
      pageNum:5
    }
  },
  methods: {
    getCarousel(nums) {
      carousel(nums).then(res=>{
        console.log(res)
      })
    }
  },
  created() {
    this.getCarousel(this.pageNum)
  }
}
</script>

<template>
  <div>
    轮播图
    <img src="" alt="">
  </div>
</template>

<style scoped lang="less">

</style>